import request from '@/utils/request'

// 获得商户订单改价配置分页
export function getChangePricePage(query) {
    return request({
        url: '/pekingFish/tenant-order-profit-configs/pageTenantOrderProfitConfigs',
        method: 'get',
        params: query
    })
}

// 创建商户订单改价配置
export function createChangePrice(data) {
    return request({
        url: '/pekingFish/tenant-order-profit-configs',
        method: 'post',
        data: data
    })
}

// 更新商户订单改价配置
export function updateChangePrice(data) {
    return request({
        url: '/pekingFish/tenant-order-profit-configs',
        method: 'put',
        data: data
    })
}

// 根据商户id获取对应商户分润配置信息
export function changePriceByTenantId(data) {
    return request({
        url: '/pekingFish/tenant-profit-config/getByTenantId',
        method: 'get',
        params: data
    })
}